 #include <cstdlib>
#include <iostream>
#include <stdio.h>
using namespace std;




int main () {
 int bpm = 60;
 float delka;
 float vysledek,prepocet;
 
 cin >> delka;
 
 
 switch ((int) delka) {
  case 1:
    delka = 4;
    cout << "Delka noty jsou " << delka << " beaty \n";
    break;
   case 4:
    delka = 1;
    cout << "Delka noty jsou " << delka << " beaty \n";
    break;
    case 8:
    delka = (float) 1/2;
    cout << "Delka noty jsou " << delka << " beaty \n";
    break;
    case 16:
    delka = (float) 1/4;
    cout << "Delka noty jsou " << delka << " beaty \n";
    break;
    case 32:
    delka = (float) 1/8;
    cout << "Delka noty jsou " << delka << " beaty \n";
    break;
    case 64:
    delka = (float) 1/16;
    cout << "Delka noty jsou " << delka << " beaty \n";
    break;
     
   default:
    cout << "Delka noty neznama." ;
  }
 
 
 getchar(); 
 
 prepocet = (((float) bpm/60)*1000);
 vysledek = prepocet*delka;
 cout << "Prepocet:" << prepocet << "\n";
 cout << "Vysledna Delka:" << vysledek << "\n";
 
 
  getchar();
    



return 0;



}

    
